<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>标题：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.title.$dirty && editForm.title.$invalid}">
                   <input name="title" 
                           ng-model="editModel.announcement.title"
						   class="form-control" 
						   maxLength="45"
						   type="text" 
					       required>
			</div>
		</div>
		<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>截止日期：</div>
		<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.expireDate.$dirty && editForm.expireDate.$invalid}">
			  	<div class="input-group">
					<input name="expireDate" 
						   ng-model="editModel.announcement.expireDate" 
						   class="form-control datetime-picker" 
						   type="text"
						   maxLength="10"
						   ng-click="editModel.effectiveDateOpen($event)"
						   z-datepicker-popup="{{editModel.format}}"
						   is-open="editModel.effectiveDateOpnened"
						   datepicker-options="editModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel.effectiveDateOpen($event)"><i class="fa-calendar"></i></span>
			  </div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>附件：</div>
			<div class="col-sm-8 col-md-8 form-input">
                   <div z-Upload
					    on-Queue-Complete="importModel.fileUploadComplete(fileUrl)"
                        upload-Stream="importModel.uploadStream"
                        token-Url="{{baseUrl}}/upload/uploadToken.do"
                        upload-Url="{{baseUrl}}/upload/upload.do"
                        multiple-Files=false></div>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<table class="table table-striped table-bordered" cellspacing="0" width="100%">
				<thead>
					<tr>
					    <td width="80">
							操作
						</td>
						<th>附件名称</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="attachment in editModel.announcement.attachmentList">
					    <td class="htgl-style10">
							<button type="button" 
									class="btn btn-danger" 
									ng-click="editModel.delAttachment(attachment)">删除</button>	
						</td>
						<td><a ng-click="importModel.download(attachment.url,attachment.fileName)">{{attachment.fileName}}</a></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="col-md-12 form-item">
		 	<div class="form-group">
		      	 <div class="z-Rich-Text-Input" z-Rich-Text-Input  on-Change-Html="editModel.conHtml(content);" content-Html="editModel.announcement.content">
		      	 </div>
		    </div>
		</div>				
	</div>
</form>